# android-aarch64.cmake
set(ANDROID TRUE)
set(ANDROID_ABI "arm64-v8a")
set(ANDROID_NDK /mnt/android_home/ndk/android-ndk-r28c)                    # 修改为你的 NDK 路径
set(ANDROID_PLATFORM android-21)
set(ANDROID_TOOLCHAIN clang)
set(ANDROID_STL c++_static)

set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 21)
set(CMAKE_ANDROID_ARCH_ABI ${ANDROID_ABI})
set(CMAKE_ANDROID_NDK ${ANDROID_NDK})
set(CMAKE_ANDROID_STL_TYPE ${ANDROID_STL})
set(CMAKE_ANDROID_NATIVE_API_LEVEL ${ANDROID_PLATFORM})

set(CMAKE_C_COMPILER   ${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang)
set(CMAKE_CXX_COMPILER ${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++)


